3.8.60 \(\int \frac {\sqrt {c x^2} (a+b x)}{x} \, dx\) [760]

Optimal. Leaf size=27 \[ a \sqrt {c x^2}+\frac {1}{2} b x \sqrt {c x^2} \]

[Out]

a*(c*x^2)^(1/2)+1/2*b*x*(c*x^2)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.00, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {15} \begin {gather*} a \sqrt {c x^2}+\frac {1}{2} b x \sqrt {c x^2} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(Sqrt[c*x^2]*(a + b*x))/x,x]

[Out]

a*Sqrt[c*x^2] + (b*x*Sqrt[c*x^2])/2

Rule 15

Int[(u_.)*((a_.)*(x_)^(n_))^(m_), x_Symbol] :> Dist[a^IntPart[m]*((a*x^n)^FracPart[m]/x^(n*FracPart[m])), Int[
u*x^(m*n), x], x] /; FreeQ[{a, m, n}, x] &&  !IntegerQ[m]

Rubi steps

\begin {align*} \int \frac {\sqrt {c x^2} (a+b x)}{x} \, dx &=\frac {\sqrt {c x^2} \int (a+b x) \, dx}{x}\\ &=a \sqrt {c x^2}+\frac {1}{2} b x \sqrt {c x^2}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.00, size = 24, normalized size = 0.89 \begin {gather*} \frac {c x^2 (2 a+b x)}{2 \sqrt {c x^2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(Sqrt[c*x^2]*(a + b*x))/x,x]

[Out]

(c*x^2*(2*a + b*x))/(2*Sqrt[c*x^2])

________________________________________________________________________________________

Maple [A]
time = 0.02, size = 17, normalized size = 0.63

method result size
gosper \(\frac {\left (b x +2 a \right ) \sqrt {c \,x^{2}}}{2}\) \(17\)
default \(\frac {\left (b x +2 a \right ) \sqrt {c \,x^{2}}}{2}\) \(17\)
risch \(a \sqrt {c \,x^{2}}+\frac {b x \sqrt {c \,x^{2}}}{2}\) \(22\)
trager \(\frac {\left (b x +2 a +b \right ) \left (-1+x \right ) \sqrt {c \,x^{2}}}{2 x}\) \(24\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)*(c*x^2)^(1/2)/x,x,method=_RETURNVERBOSE)

[Out]

1/2*(b*x+2*a)*(c*x^2)^(1/2)

________________________________________________________________________________________

Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(c*x^2)^(1/2)/x,x, algorithm="maxima")

[Out]

Exception raised: RuntimeError >> ECL says: Error executing code in Maxima: expt: undefined: 0 to a negative e
xponent.

________________________________________________________________________________________

Fricas [A]
time = 0.89, size = 16, normalized size = 0.59 \begin {gather*} \frac {1}{2} \, \sqrt {c x^{2}} {\left (b x + 2 \, a\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(c*x^2)^(1/2)/x,x, algorithm="fricas")

[Out]

1/2*sqrt(c*x^2)*(b*x + 2*a)

________________________________________________________________________________________

Sympy [A]
time = 0.07, size = 22, normalized size = 0.81 \begin {gather*} a \sqrt {c x^{2}} + \frac {b x \sqrt {c x^{2}}}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(c*x**2)**(1/2)/x,x)

[Out]

a*sqrt(c*x**2) + b*x*sqrt(c*x**2)/2

________________________________________________________________________________________

Giac [A]
time = 1.90, size = 17, normalized size = 0.63 \begin {gather*} \frac {1}{2} \, {\left (b x^{2} + 2 \, a x\right )} \sqrt {c} \mathrm {sgn}\left (x\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)*(c*x^2)^(1/2)/x,x, algorithm="giac")

[Out]

1/2*(b*x^2 + 2*a*x)*sqrt(c)*sgn(x)

________________________________________________________________________________________

Mupad [B]
time = 0.19, size = 14, normalized size = 0.52 \begin {gather*} \frac {\sqrt {c}\,\left |x\right |\,\left (2\,a+b\,x\right )}{2} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((c*x^2)^(1/2)*(a + b*x))/x,x)

[Out]

(c^(1/2)*abs(x)*(2*a + b*x))/2

________________________________________________________________________________________